package day07.test;

public class Vehicle {

    private String plateNo;
    private int wheelbase;

    public Vehicle() {
    }

    public Vehicle(String plateNo, int wheelbase) {
        this.plateNo = plateNo;
        this.wheelbase = wheelbase;
    }

    public String getPlateNo() {
        return plateNo;
    }

    public void setPlateNo(String plateNo) {
        this.plateNo = plateNo;
    }

    public int getWheelbase() {
        return wheelbase;
    }

    public void setWheelbase(int wheelbase) {
        this.wheelbase = wheelbase;
    }

    public String toString() {
        return "Vehicle{plateNo = " + plateNo + ", wheelbase = " + wheelbase + "}";
    }

    public void show() {
        System.out.println("车牌号：" + plateNo);
        System.out.println("轴距为：" + wheelbase);
    }
}
